package com.lion.ball.modules.orderfood.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.lion.common.spring.business.base.BaseCrudController;
import com.lion.ball.modules.orderfood.domain.entity.OfdTableOrderEntity;
import com.lion.ball.modules.orderfood.web.model.params.create.OfdTableOrderCreateParam;
import com.lion.ball.modules.orderfood.web.model.params.update.OfdTableOrderUpdateParam;
import com.lion.ball.modules.orderfood.web.model.params.search.OfdTableOrderSearchParam;
import com.lion.ball.modules.orderfood.web.model.params.order.OfdTableOrderOrderParam;
import com.lion.ball.modules.orderfood.web.model.results.OfdTableOrderResult;
import com.lion.ball.modules.orderfood.dao.repository.OfdTableOrderRepository;
import com.lion.ball.modules.orderfood.service.assistants.converters.OfdTableOrderConverter;
import com.lion.ball.modules.orderfood.service.def.OfdTableOrderService;
import com.lion.ball.modules.orderfood.web.api.OfdTableOrderApi;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 桌位与订单关联 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("ofd/table/order")
public class OfdTableOrderController implements OfdTableOrderApi, BaseCrudController<
        OfdTableOrderEntity,
        OfdTableOrderCreateParam,
        OfdTableOrderUpdateParam,
        OfdTableOrderSearchParam,
        OfdTableOrderOrderParam,
        OfdTableOrderResult,
        OfdTableOrderRepository,
        OfdTableOrderConverter,
        OfdTableOrderService
        > {

    @Autowired
    OfdTableOrderService ofdTableOrderService;

    @Override
    public OfdTableOrderService getService() {
        return ofdTableOrderService;
    }
}